import * as actionTypes from './actionTypes'
import axios from 'axios'
const ActionGetHomeData = () => ({
    type: actionTypes.GET_HOME_DATA
})
export const getHomeData = () => {
    return (dispatch) => {
        axios.get('/api/home.json').then((res) => {
            dispatch(ActionGetHomeData(res.data.data))
        })
    }
}
